package h_eekwan.basic;

public class J02_Arithmathic {

	public static void main(String[] args) {
		// char형이 int형으로 자동변환
		
		// 3.번문제
		boolean a;
		boolean b;
		double number;
		int quotient;
		int remainder;
		int result;
			// 자료형 변환 (명시적)
		System.out.println( ((float)1/3) * 3);
			// 실수리터럴
		System.out.println( (1./3) * 3);
		System.out.println( (1f/3) * 3);
		
		number = (1/3)*3;
		quotient = 7/3;
		remainder = 7%3;
		result = 11; result /=3; 
		
		a = 6<5;		
		b = 4==5;
		System.out.println(a||b);
		System.out.println(number);
		System.out.println((1/3)*3);
		System.out.println(quotient);
		System.out.println(remainder);
		System.out.println(result);
		
		// 5.
			
		System.out.println(1>2||3<5);
		
//	     7.
				//가 
			System.out.println(3+4.5*2+27/8);
				//나
			System.out.println(true||false&&3<4||!(5==7));
				//다
			System.out.println(true||(3<5&&6>=2));
				//라
				//마
			System.out.println(7%4+3-2/6*'Z');
				//바
			System.out.println(5.0/3+3/3);
				//사
			System.out.println(53%21<45/18);
				//아
			System.out.println((4<6)||true&&false||false&&(2>3));
			System.out.println(false ||false);
	}
		
	}


 